<?php include _include(APP_PATH.'view/htm/header.inc.htm');?>

<!--{hook user_index_start.htm}-->

<div class="UserPage">
    <div class="UserCard Hero UserHero" style="background-color: rgb(160, 170, 229);">
        <div class="darkenBackground">
            <div class="container">
                <div class="UserCard-profile">
                    <h2 class="UserCard-identity">
                        <a href="<?php echo url("user-$_uid");?>">
                            <div class="UserCard-avatar">
                                <img class="Avatar" src="<?php echo $_user['avatar_url'];?>">
                            </div>
                            <span class="username"><?php echo $_user['username'];?></span>
                        </a>
                    </h2>
                    <ul class="UserCard-info">
                        <li class="item-lastSeen">
                            <span class="UserCard-lastSeen" data-toggle="tooltip" title="<?php echo lang('last_login_date');?>">
                                <i class="icon fa fa-fw fa-clock-o"></i> <?php echo $_user['login_date_fmt'];?>
                            </span>
                        </li>
                        <li class="item-joined">注册于 <?php echo $_user['create_date_fmt'];?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="sideNavContainer">
            <nav class="sideNav UserPage-nav">
                <ul>
                    <li class="item-nav">
                        <div class="ButtonGroup Dropdown dropdown App-titleControl Dropdown--select itemCount3">
                            <button class="Dropdown-toggle Button" data-toggle="dropdown">
                                <span class="Button-label">Posts</span>
                                <i class="icon fas fa-sort Button-caret"></i>
                            </button>
                            <ul class="Dropdown-menu dropdown-menu ">
                                <li class=" " data-active="menu-user">
                                    <a href="<?php echo url("user-$_uid");?>" class=" hasIcon" role="button" title="个人资料">
                                        <i class="icon fa fa-fw fa-user Button-icon"></i>
                                        <span class="Button-label">个人资料</span>
                                    </a>
                                </li>
                                <li class=" " data-active="user-thread">
                                    <a href="<?php echo url("user-thread-$_uid");?>" class=" hasIcon" role="button" title="主题">
                                        <i class="icon fa fa-fw fa-comment Button-icon"></i>
                                        <span class="Button-label">主题
                                            <span class="Button-badge"><?php echo $_user['threads'];?></span>
                                        </span>
                                    </a>
                                </li>
                                <li class=" " data-active="user-post">
                                    <a href="<?php echo url("user-post-$_uid");?>" class=" hasIcon" role="button" title="回复">
                                        <i class="icon fa fa-fw fa-comments-o Button-icon"></i>
                                        <span class="Button-label">回复
                                            <span class="Button-badge"><?php echo $_user['posts'];?></span>
                                        </span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>
                </ul>
            </nav>
            <div class="sideNavOffset UserPage-content">
                <slot name="user_nav" />

                <slot name="user_body" />
            </div>
        </div>
    </div>
</div>

<!--{hook user_index_end.htm}-->

<?php include _include(APP_PATH.'view/htm/footer.inc.htm');?>

<!--{hook user_index_js.htm}-->